package com.cskaoyan.service;


import com.cskaoyan.bean.vo.statvo.GoodsColumns;
import com.cskaoyan.bean.vo.statvo.OrderColumns;
import com.cskaoyan.bean.vo.statvo.UserColumns;
import com.cskaoyan.mapper.MarketUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @program: SSMItem
 * @description 该service是统计报表的数据处理
 * @author: YY
 * @create: 2022-10-12 13:13
 **/
@Service
public class AdminStatServiceImpl implements AdminStatService {
    @Autowired
    MarketUserMapper mapper;

    @Override
    public List<UserColumns> selectUser() {

        List<UserColumns> columnsList = mapper.selectAllUser();
        return columnsList;

    }


    @Override
    public List<OrderColumns> selectOrder() {
        List<OrderColumns> orderList = mapper.selectAllOrder();


        return orderList;

    }

    @Override
    public List<GoodsColumns> selectGoods() {

        List<GoodsColumns> goodsColumnsList = mapper.selectAllGoods();

        return goodsColumnsList;
    }
}
